Picking json objects those are between the lookup ranges using javascript